package com.appbee.media.shared;

import java.util.List;

import com.appbee.core.server.requestfactory.GuiceServiceLocator;
import com.appbee.media.server.MediaService;
import com.google.web.bindery.requestfactory.shared.Request;
import com.google.web.bindery.requestfactory.shared.RequestContext;
import com.google.web.bindery.requestfactory.shared.Service;

@Service(value=MediaService.class,locator=GuiceServiceLocator.class)
public interface MediaServiceRequest extends RequestContext
{
	public Request<List<MediaProxy>> findByRange(int start,int size);
	
	public Request<MediaProxy> findById(long id);

	public Request<MediaProxy> save(MediaProxy bean);

	public Request<Void> delete(MediaProxy photo);
	
	public Request<List<String>> createUploadUrl(int size);

}
